package com.test_03;

public class FactoryMethod {
    public static  void main(String[] args) {
        CarFactory carFactory= (CarFactory) new ConBenzFactory();
        Car car = carFactory.creatCar();
        car.getName();
    }
}
